package com.cwl.pattern.装饰模式;

/**
 * @program: pattern
 * @description: 操作类A - 对操作进行装饰
 * @author: ChenWenLong
 * @create: 2019-06-25 17:37
 **/
public class ConcreteDecoratorA extends Decorator {

    private String addedState;

    @Override
    public void opeartion() {
        super.opeartion();
        addedState ="New State";
        System.out.println("具体的装饰对象A的操作");
    }

    public void setAddedState(String addedState) {
        this.addedState = addedState;
    }
}
